<template>
  <div>
    <router-link :to="{path:'/routertest1',query:{name:'路由1'}}" class="mr-20">路由1</router-link>
    <router-link :to="{path:'/routertest2',query:{name:'路由2'}}">路由2</router-link>
    <div>
      <router-view />
    </div>
  </div>
</template>
<script lang="ts">

export default {
  data() {
    return {

    }
  },
  created() {
    console.log("🚀 ~ file: index.vue ~ line 19 ~ created ~ created")
    
  },
  mounted() {
    this.$router.push('/routertest1')
    console.log('嵌套路由11222');
    
  }
}
</script>
